<?php
require_once 'Bucket/bucket.inc.php';
require_once 'spyc/spyc.php';
require_once('ss/core/ss_core_file.php');
require_once('ss/core/ss_core.php');
require_once('site/core/site_core.php');

require_once('FirePHPCore/FirePHP.class.php');
require_once('FirePHPCore/fb.php');
require_once('ss/error/ss_error.php');
$firephp = FirePHP::getInstance(true);
$firephp->registerErrorHandler();
$firephp->registerExceptionHandler();
$firephp->registerExceptionHandler();
$options = array('maxObjectDepth' => 1,
                 'maxArrayDepth' => 4,
                 'useNativeJsonEncode' => true,
                 'includeLineNumbers' => true);
$firephp->setOptions($options);
FB::setEnabled(true);
error_reporting(E_ALL | E_STRICT);

ss_error::log('test');

spl_autoload_register('ss_core_file::autoload');
$ss=new ss_site_config('site.config',SS_APP_PATH.'/');
$ss->merge(new ss_core_serverConfig(array('data'=>'server')));
/*
$ss=(object) array(
	'error'=>(object)array(
		'firephp'=>(object)array(
			'active'=>true)),
	'server'=>(object)array(
		'appath'=>(object)array(
			'category'=>'kategori',
			'entry'=>'artikel',
			'staff'=>'personal')));
$ss=new ss_core_settings($ss);
*/
?>